package com.yangst.service.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

//开启Feign的功能
@EnableFeignClients
@EnableEurekaClient
@SpringBootApplication
@EnableHystrixDashboard//开启hystrixDashboard
public class CloudServiceFeignApplication {

	public static void main(String[] args) {
		SpringApplication.run(CloudServiceFeignApplication.class, args);
	}
}
